From: Wei Liu Date: Mon, 11 Apr 2016 13:08:03 +0000 (+0100) Subject: libxl: pvusb: use %u to convert unsigned number X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1263 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a20e8c7a68971696477704fa617c02027f4237a6;p=xen.git libxl: pvusb: use %u to convert unsigned number Both be_domid and fe_domid are unsigned. Reported-by: Olaf Hering Signed-off-by: Wei Liu Reviewed-by: Juergen Gross Release-acked-by: Wei Liu --- diff --git a/tools/libxl/libxl_pvusb.c b/tools/libxl/libxl_pvusb.c index c66733bba9..9f1e8427f5 100644 --- a/tools/libxl/libxl_pvusb.c +++ b/tools/libxl/libxl_pvusb.c @@ -350,7 +350,7 @@ static const char *vusb_be_from_xs_fe(libxl__gc *gc, const char *fe_path, /* Check to see that it has the proper form, and that fe_domid == * target domid */ - r = sscanf(be_path, "/local/domain/%d/backend/%15[^/]/%d", + r = sscanf(be_path, "/local/domain/%u/backend/%15[^/]/%u", &be_domid, be_type, &fe_domid); if (r != 3 || fe_domid != tgt_domid) {